//
//  NetWorkEngine.h
//  QiushiDemo
//
//  Created by 王桂敏 on 15-5-13.
//  Copyright (c) 2015年 lanouhn. All rights reserved.
//

#import <Foundation/Foundation.h>
@class NetWorkEngine;

@protocol NetworkEngineDelegate <NSObject>

@optional
- (void)networkDidStartLoading:(NetWorkEngine *)engine;//网络开始加载
- (void)networkDidFinishLoading:(NetWorkEngine *)engine
                       withInfo:(id)info;//网络结束加载

@end

@interface NetWorkEngine : NSObject
+ (id)engineWithURL:(NSURL *)url
         parameters:(NSDictionary *)params
           delegate:(id<NetworkEngineDelegate>)delegate;
//设置请求方式GET/POST
- (void)setHTTPType:(NSString *)method;
//开始请求
- (void)start;
@end
